﻿@{

    string FullName = "";
    if (Request.IsAuthenticated)
    {
        HttpCookie UserCookie = Request.Cookies["UserInformation"];
        FullName = User.Identity.Name;
        if(UserCookie != null)
        { 
            FullName = UserCookie["FullName"];
        }
        
    }
}
<!--  MAIN  NAVIGATION-->
					<ul>
						<li>@Html.ActionLink("Home", "Index", "Home")</li>
                        @{
                            if(Request.IsAuthenticated)
                            {
                                <li>@Html.ActionLink("Data Types", "Index", "DataTypes")</li>
                                <li>@Html.ActionLink("File Formats", "Index", "FileTypes")</li>
                                <li>@Html.ActionLink("Data Processor", "Index", "DP")</li>
                            }
                                
                        }
						<li><a href="#">Help</a>
                            <ul>
                                <li><a href="#">General Questions</a></li>
                                <li><a href="#">Login</a></li>
                            </ul>
						</li>
                        @{
                            if (!Request.IsAuthenticated)
                            {
                                <li> @Html.ActionLink("Register", "Register", "LogOn") </li>
                            }   
                            
                            <li>

                            @if (Request.IsAuthenticated)
                            {                                    
                                <a href="#">@FullName</a>
                                <ul>
                                    <li>@Html.ActionLink("Change Password", "ChangePassword", "Account") </li>
                                    <li>@Html.ActionLink("Update Profile", "UpdateProfile", "Account") </li>
                                    <li>@Html.ActionLink("Log Off", "LogOff", "LogOn") </li>
                                </ul>
                     
                            }
                            else
                            {
                                @Html.ActionLink("Log On", "LogOn", "LogOn") 
                            }

                            </li>
                        }
					</ul>